﻿using System;

namespace Cms.Web.Framework.Plugins.Attributes
{
    public class EnumerationAttribute : Attribute
    {
        private readonly string _enumeration;
        private readonly bool _mandatory;

        public EnumerationAttribute(string enumeration, bool mandatory)
        {
            _enumeration = enumeration;
            _mandatory = mandatory;
        }

        public string Enumeration
        {
            get { return _enumeration; }
        }
        
        public bool Mandatory
        {
            get { return _mandatory; }
        }
    }
}